package com.springboot.chongwu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 宠物百科
 * </p>
 *
 * @author author
 * @since 2024-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Baike extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 1.狗，2.猫
     */
    private Integer ctype;

    /**
     * 标题
     */
    private String title;

    /**
     * 图片
     */
    private String imgurl;

    /**
     * 简介
     */
    private String jianjie;

    /**
     * 内容
     */
    private String content;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd")
    private Date ctime;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd")
    private Date utime;


}
